package com.zhuangjie.coupon.enums;

/**
 * 优惠券状态
 *
 * @author zhuangjie
 * @date 2024/03/01
 */
public enum CouponState {
    UNUSED((byte)0, "未使用"),
    LOCKED((byte) 1, "锁定中(订单未完成)"),
    USED((byte) 2, "已使用"),
    EXPIRED((byte) -1, "已失效（券使用退货后券失效场景）");

    private byte code;
    private String description;

    CouponState(byte code, String description) {
        this.code = code;
        this.description = description;
    }

    public byte getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }
}
